package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkExamLevelMapper;
import com.ruoyi.chengkao.domain.CkExamLevel;
import com.ruoyi.chengkao.service.ICkExamLevelService;

/**
 * 报考层次信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkExamLevelServiceImpl implements ICkExamLevelService 
{
    @Autowired
    private CkExamLevelMapper ckExamLevelMapper;

    /**
     * 查询报考层次信息
     * 
     * @param id 报考层次信息主键
     * @return 报考层次信息
     */
    @Override
    public CkExamLevel selectCkExamLevelById(Long id)
    {
        return ckExamLevelMapper.selectCkExamLevelById(id);
    }

    @Override
    public List<CkExamLevel> selectCkExamLevelAll()
    {
        return ckExamLevelMapper.selectCkExamLevelAll();
    }

    /**
     * 查询报考层次信息列表
     * 
     * @param ckExamLevel 报考层次信息
     * @return 报考层次信息
     */
    @Override
    public List<CkExamLevel> selectCkExamLevelList(CkExamLevel ckExamLevel)
    {
        return ckExamLevelMapper.selectCkExamLevelList(ckExamLevel);
    }

    /**
     * 新增报考层次信息
     * 
     * @param ckExamLevel 报考层次信息
     * @return 结果
     */
    @Override
    public int insertCkExamLevel(CkExamLevel ckExamLevel)
    {
        return ckExamLevelMapper.insertCkExamLevel(ckExamLevel);
    }

    /**
     * 修改报考层次信息
     * 
     * @param ckExamLevel 报考层次信息
     * @return 结果
     */
    @Override
    public int updateCkExamLevel(CkExamLevel ckExamLevel)
    {
        return ckExamLevelMapper.updateCkExamLevel(ckExamLevel);
    }

    /**
     * 批量删除报考层次信息
     * 
     * @param ids 需要删除的报考层次信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamLevelByIds(Long[] ids)
    {
        return ckExamLevelMapper.deleteCkExamLevelByIds(ids);
    }

    /**
     * 删除报考层次信息信息
     * 
     * @param id 报考层次信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamLevelById(Long id)
    {
        return ckExamLevelMapper.deleteCkExamLevelById(id);
    }
}
